import axios from 'axios'

export default {
  install: function (vue) {
    var auth = vue.prototype.$auth
    var result = axios.create({
      baseURL: 'http://127.0.0.1:5000/api/data'
    })
    // obj.interceptors.request.use(function (conf) {
    //   conf.headers.Authorization = auth.getAuthorization()
    //   return conf
    // })
    vue.prototype.$http = result
  }
}
